< previous page page_54 next page >

Page 54
Continued
Table 3.3
SettingEffect
2 - SizableThe border appearance indicates that the form can be resized. The title bar and control buttons are displayed. The user can resize the form by clicking and dragging the border. This setting is the default.
3 - Fixed DialogThe form shows a fixed border. The title bar, control box, and Close button are shown on the form. Minimize and Maximize buttons are not displayed. The form cannot be resized.
4 - Fixed ToolWindowThe form has a single-line border and displays only the title bar and Close button. They are shown in a reduced font size (approximately half height).
5 - Sizable ToolWindowThis is the same as the Fixed ToolWindow, except that the form has a sizable border.

0054-01.jpg
Figure 3.11
Changing the 
BorderStyle property can
give a form many different appearances.
note.gif Setting the BorderStyle property to prevent resizing does not affect the form's appearance in the design environment; it does so only at runtime. square.gif

The default BorderStyle property setting provides a border that allows the users to resize the form while the program is running. You can find this type of form in a typical Windows application. However, you can change the BorderStyle setting to make the form look like almost any type of window that you would see in a program, including Toolboxes and dialog boxes. You can even remove the form's border altogether.
In Table 3.3, several of the BorderStyle definitions indicate that a control box and the Close, Minimize, and Maximize buttons would be displayed in the title bar of the form. This behavior

 
< previous page page_54 next page >